package suite.test
{
	import com.aflac.presentation.LoginPresentationModel;
	import com.aflac.view.Login;
	
	import org.flexunit.Assert;

	public class LoginModelShould
	{
		public var loginModel:LoginPresentationModel;
		
		public function LoginModelShould()
		{
		}
		
		[Before]
		public function setUp():void 
		{   
			loginModel = new LoginPresentationModel();
			
		}   
		
		[After]  
		public function tearDown():void 
		{   
			loginModel = null;
			
		}
		
		[Test]
		public function beAbleTo_SetAndGetAUserName():void
		{
			var sampleName:String = "Alfred P. Grimley";
			loginModel.user_name = sampleName;
			Assert.assertEquals(sampleName, loginModel.user_name);  
			
		} 
		[Test]
		public function beAbleTo_SetAndGetAPassword():void
		{
			var samplePassword:String = "3xUi&89k&*k";
			loginModel.password = samplePassword;
			Assert.assertEquals(samplePassword, loginModel.password);  
			
		} 
		
		
	}
}